import { sendRequest } from '@/http';

export function rating() {
  return sendRequest({
    url: `/dict/rating/list`,
    method: 'get',
    needCache: true,
  });
}

export function gender() {
  return sendRequest({
    url: `/dict/gender/list`,
    method: 'get',
    needCache: true,
  });
}

export function queryByParentCode(parentCode?: string) {
  return sendRequest({
    url: `/dict/area/queryByParentCode`,
    method: 'get',
    params: { parentCode },
    needCache: true,
  });
}

export function affiliatedYear() {
  return sendRequest({
    url: `/dict/affiliatedYear/list`,
    method: 'get',
    needCache: true,
  });
}
